package ar.com.jendrix.web.servlet;

import java.io.IOException;
import java.io.PrintWriter;

import javax.ejb.EJB;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import ar.com.jendrix.login.service.CuentaService;
import ar.com.jendrix.login.service.LoginService;

@WebServlet("/HelloServlet")
public class HelloServlet extends HttpServlet {

	private static final long serialVersionUID = 3031665322987189909L;

	@EJB
	private LoginService helloWorld;

	@EJB
	private CuentaService usuarioService;

	public HelloServlet() {
	}

	protected void doGet(HttpServletRequest req, HttpServletResponse resp)
			throws ServletException, IOException {
		PrintWriter writer = resp.getWriter();
		writer.println(helloWorld.sayHello());
		writer.close();
	}
}